package com.ld.security.auth.client;


import com.ld.security.auth.common.AuthCommonConfig;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

/**
 * 认证配置
 */
@Configuration
@ComponentScan
@Import({
        AuthCommonConfig.class
})
@EnableScheduling
public class AutoConfiguration {

    @Bean
    @LoadBalanced
   public RestTemplate restTemplate() {
        RestTemplate restTemplate =  new RestTemplate();

        return  restTemplate;
    }
}
